Meridian Enterprise prompts the user for confirmation of many important operations. This can save users from making potentially serious mistakes, especially when they are new to the system. But some of the confirmation prompts may be considered a nuisance by experienced users or may interrupt automated processes.
The following sample code demonstrates how to hook the vault’s Open event to initialize the confirmation options of many Meridian Enterprise commands. To disable confirmation of particular command, simply change its value to False in the code.
Sub SetConfirmationOptions()
' Delete document with incoming references
Client.Confirmation( AS_CONFIRM_DELETE_DOCUMENT_WITHREFS ) = True
' Delete document/folder
Client.Confirmation( AS_CONFIRM_DELETE_FSOBJECT ) = True
' Delete multiple documents/folders
Client.Confirmation( AS_CONFIRM_MULTIPLE_DELETE_FSOBJECT ) = True
' Delete Collection
Client.Confirmation( AS_CONFIRM_DELETE_COLLECTION ) = True
' Delete Empty Collection
Client.Confirmation( AS_CONFIRM_DELETE_EMPTYCOLLECTION ) = True
' Delete Selection
Client.Confirmation( AS_CONFIRM_DELETE_SELECTION ) = True
' Delete Baseline
Client.Confirmation( AS_CONFIRM_DELETE_BASELINE ) = True
' Change Work Area State
Client.Confirmation( AS_CONFIRM_WA_CHANGESTATE ) = True
' Change Work Area State (No Access)
Client.Confirmation( AS_CONFIRM_WA_CHANGESTATE_NOACCESS ) = True
' Revoke Quick Change
Client.Confirmation( AS_CONFIRM_REVOKEQC ) = True
' Revoke Workflow
Client.Confirmation( AS_CONFIRM_REVOKEWORKFLOW ) = True
' Revoke working copy
Client.Confirmation( AS_CONFIRM_REVOKEWC ) = True
' Create multiple Working Copies
Client.Confirmation( AS_CONFIRM_MULTIPLE_CREATEWC ) = True
' Start Quick Change for multiple documents
Client.Confirmation( AS_CONFIRM_MULTIPLE_STARTQC ) = True
' Submit multiple Working Copies
Client.Confirmation( AS_CONFIRM_MULTIPLE_SUBMITWC ) = True
' Release multiple documents from Quick Change
Client.Confirmation( AS_CONFIRM_MULTIPLE_RELEASEQC ) = True
' Open read-only document (under revision by another user)
Client.Confirmation( AS_CONFIRM_OPENDOC_UNDERREVISION ) = True
' Open read-only document (assigned to a work area)
Client.Confirmation( AS_CONFIRM_OPENDOC_INWORKAREA ) = True
' Replace content
Client.Confirmation( AS_CONFIRM_DOC_REPLACECONTENT ) = True
' Change filename extension
Client.Confirmation( AS_CONFIRM_DOC_CHANGEXTENTION ) = True
' Cancel batch operation
Client.Confirmation( AS_CONFIRM_CANCEL_BATCH ) = True
' Release document of other user
Client.Confirmation( AS_CONFIRM_RELEASE_OTHERUSER ) = True
' Revoke document of other user
Client.Confirmation( AS_CONFIRM_REVOKE_OTHERUSER ) = True
' Delete work area
Client.Confirmation( AS_CONFIRM_DELETED_WA ) = True
' Discard document from work area
Client.Confirmation( AS_CONFIRM_DISCARD_DOC_WA ) = True
' Set field
Client.Confirmation( AS_CONFIRM_SETFIELD ) = True
' Issue new filename
Client.Confirmation( AS_CONFIRM_ISSUENEWFILENAME ) = True
' Add value to lookup list
Client.Confirmation( AS_CONFIRM_ADDTO_LOOKUPLIST ) = True
' Reset redline version and start new one
Client.Confirmation( AS_CONFIRM_REDLINE_RESETEXISTING ) = True
End Sub Sub VaultEvent_Open()
SetConfirmationOptions
End Sub